import { defineConfig } from "vitepress";
export default defineConfig({
  title: "vue3-test-ui",
  description: "vue3-test-ui website",
  themeConfig: {
    algolia: {
      appId: "8J64VVRP8K",
      apiKey: "a18e2f4cc5665f6602c5631fd868adfd",
      indexName: "vue3-test-ui",
    },
    nav: [
      { text: "首页", link: "/" },
      { text: "文档", link: "/docs/guide/", activeMatch: "^/docs/guide/" },
      {
        text: "getee",
        link: "https://gitee.com/zhizous/vu3-test-ui",
      },
      {
        text: "npm",
        link: "https://www.npmjs.com/package/vue3-test-ui",
      },
    ],
    sidebar: {
      "/docs/guide/": getGuideSidebar(),
    },
  },
});
function getGuideSidebar() {
  return [
    { text: "安装", link: "/docs/guide/" },
    {
      text: "Components",
      children: [
        { text: "grid", link: "/docs/guide/grid" },
        { text: "button", link: "/docs/guide/button" },
      ],
    },
  ];
}
